package com.zhike.common.dto;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Elasticsearch 存储消息 DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EsMessageDTO {

    private String id;

    private String sessionId;

    private String content;

    private String senderUid;

    private String receiver;

    private String fp;

    private Integer chatType;

    private Integer msgType;

    private String groupId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date timestamp;

}
